export class Queue {
  queue = []

  add(e) {
    this.queue.push(e)
  }

  remove(e) {
    this.queue = this.queue.filter(i=>{
      return i !== e
    })
  }

  forEach(callback) {
    for (const i of this.queue) {
      callback(i)
    }
  }
}